﻿using System;
using System.Linq;
using System.Text;
using Iesi.Collections.Generic;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace NHibernateDemo.DAL.Entity {
    
    public class PersonBasic {
        
        public virtual int PersonId { get; set; }
        [Range(0,80)]
        [Required]
        public virtual int Age { get; set; }
        [Required]
        public virtual Name Name { get; set; }
        public virtual IList<FundBasic> ManageFunds { get; set; }

        public PersonBasic( ) {
            ManageFunds = new List<FundBasic>( );
        }
    }
}
